﻿using TicketReservationSystem.Common.Interfaces;

namespace TicketReservationSystem.DataAccess
{
    public static class DataAccessFactory
    {
        public static IDataAccess Build(string connectionString)
        {
            var data = new DataAccess(connectionString);

            data.InitializeDataBase();

            return data;
        }
    }
}
